package unit7;

import java.util.Arrays;

public class Array1 {
    // 比较主数据类型数组，对象数组
    public static void main(String[] args) {
        int[] ints = new int[10];
        ints[0] = 1;
        ints[1] = 2;
        ints[2] = 3;
        System.out.println(Arrays.toString(ints));

        Dog[] dogs = new Dog[3];
        System.out.println(dogs[0]);
        dogs[0] = new Dog();

//        ArrayList<Dog>  dogs1 = new ArrayList<>();
//        dogs1.add(new Dog());
    }
}
